package com.action.gulimall.product.service;

import com.action.common.utils.PageUtils;
import com.action.gulimall.product.entity.SkuInfoEntity;
import com.action.gulimall.product.vo.SkuItemSaleAttrVo;
import com.action.gulimall.product.vo.SkuItemVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author shilun
 * @email sunlightcs@gmail.com
 * @date 2021-06-08 17:38:24
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageCondition(Map<String, Object> params);

    List<SkuInfoEntity> getSkuInfosBySpuId(Long spuId);

    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;

    List<SkuItemSaleAttrVo> getAllSaleAttrBySpuId(Long spuId);
}

